import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import GoodsView from '../views/GoodsView.vue'
import MessagesView from '../views/MessagesView.vue'
import PersonalView from '../views/PersonalView.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/goods',
    name:'goods',
    component: GoodsView
  },
  {
    path: '/messages',
    name:'messages',
    component: MessagesView
  },
  {
    path: '/personal',
    name: 'personal',
    component: PersonalView
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
